// 自动生成模板Users
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type Users struct {
      global.GVA_MODEL
      ApplyStatus  int `json:"applyStatus" form:"applyStatus" gorm:"column:apply_status;comment:申请状态申请状态,1游客会员，2待审核会员，3认证会员，4冻结会员,5驳回审核;type:smallint;"`
      Area  string `json:"area" form:"area" gorm:"column:area;comment:地区;type:varchar(255);"`
      CAddress  string `json:"cAddress" form:"cAddress" gorm:"column:c_address;comment:证件地址;type:varchar(255);"`
      CArea  string `json:"cArea" form:"cArea" gorm:"column:c_area;comment:联系所在地;type:varchar(255);"`
      CCard  string `json:"cCard" form:"cCard" gorm:"column:c_card;comment:组织机构代码;type:varchar(255);"`
      CLength  string `json:"cLength" form:"cLength" gorm:"column:c_length;comment:经营期限至;type:varchar(255);"`
      CName  string `json:"cName" form:"cName" gorm:"column:c_name;comment:单位名称;type:varchar(255);"`
      CPhone  string `json:"cPhone" form:"cPhone" gorm:"column:c_phone;comment:联系电话;type:varchar(255);"`
      CProduct  int `json:"cProduct" form:"cProduct" gorm:"column:c_product;comment:主营产品/业务;type:int;"`
      CSend  string `json:"cSend" form:"cSend" gorm:"column:c_send;comment:传真号码，数组;type:text;"`
      CCity  string `json:"cCity" form:"cCity" gorm:"column:c_city;comment:所在地区;type:text;"`
      CStreet  string `json:"cStreet" form:"cStreet" gorm:"column:c_street;comment:街道地址;type:varchar(255);"`
      CType  string `json:"cType" form:"cType" gorm:"column:c_type;comment:单位性质;varchar(255);"`
      CWeb  string `json:"cWeb" form:"cWeb" gorm:"column:c_web;comment:企业网址;type:varchar(255);"`
      CWork  int `json:"cWork" form:"cWork" gorm:"column:c_work;comment:主营行业;type:int;"`
      CardType  string `json:"cardType" form:"cardType" gorm:"column:card_type;comment:证件类型;type:varchar(255);"`
      ClientBook  string `json:"clientBook" form:"clientBook" gorm:"column:client_book;comment:被授权委托授权书;type:varchar(255);"`
      ClientCard  string `json:"clientCard" form:"clientCard" gorm:"column:client_card;comment:委托人照片;type:varchar(255);"`
      ClientCardNumber  string `json:"clientCardNumber" form:"clientCardNumber" gorm:"column:client_card_number;comment:被委托人证件号码;type:varchar(255);"`
      ClientForPhone  string `json:"clientForPhone" form:"clientForPhone" gorm:"column:client_for_phone;comment:被委托人应急手机号;type:varchar(255);"`
      ClientMail  string `json:"clientMail" form:"clientMail" gorm:"column:client_mail;comment:被委托人电子邮箱;type:varchar(255);"`
      ClientName  string `json:"clientName" form:"clientName" gorm:"column:client_name;comment:被委托人姓名;type:varchar(255);"`
      ClientPhone  string `json:"clientPhone" form:"clientPhone" gorm:"column:client_phone;comment:被委托人手机号;type:varchar(255);"`
      ClientType  string `json:"clientType" form:"clientType" gorm:"column:client_type;comment:被委托人证件类型;type:varchar(255);"`
      DoneUser  int `json:"doneUser" form:"doneUser" gorm:"column:done_user;comment:处理人;type:int;size:10;"`
      DpayPic  string `json:"dpayPic" form:"dpayPic" gorm:"column:dpay_pic;comment:后台操作者审核上传图片;type:varchar(255);"`
      LegalCard  string `json:"legalCard" form:"legalCard" gorm:"column:legal_card;comment:法人身份证照片;type:varchar(255);"`
      License  string `json:"license" form:"license" gorm:"column:license;comment:营业执照;type:varchar(255);"`
      MpayPic  string `json:"mpayPic" form:"mpayPic" gorm:"column:mpay_pic;comment:会员费缴费凭证;type:varchar(255);"`
      Name  string `json:"name" form:"name" gorm:"column:name;comment:名称;type:varchar(255);"`
      Password  string `json:"password" form:"password" gorm:"column:password;comment:密码;type:varchar(255);"`
      Phone  string `json:"phone" form:"phone" gorm:"column:phone;comment:登陆手机号;type:varchar(32);"`
      ProtoAgree  string `json:"protoAgree" form:"protoAgree" gorm:"column:proto_agree;comment:协议书;type:varchar(255);"`
      UserProject []UserProject `json:"user_project" gorm:"foreignKey:UserId;references:ID"`
      UserLevel  UserLevel `json:"user_level" gorm:"foreignKey:ID;references:ApplyStatus"`
}


func (Users) TableName() string {
  return "users"
}

